//
//  YZRequestURLs.h
//  YZStock
//
//  Created by fenchol on 15/7/7.
//  Copyright (c) 2015年 fenchol. All rights reserved.
//

#ifndef YZStock_CQRequestURLs_h
#define YZStock_CQRequestURLs_h

#import <Foundation/Foundation.h>
#import "YZMNetWorkUrlServic.h"


//#define DEBUG_MODE //开发模式
//#define TEST_MODE //测试模式


#if defined(DEBUG_MODE)

//#define URL_BASE_STRING @"http://116.62.116.77:8083"
#define URL_BASE_STRING @"http://192.168.14.251:9700"
#define URL_HTML_STRING @"http://192.168.14.251:9700"
#define URL_QUOTE_BASE_STRING @"http://192.168.14.251:9700"
#define URL_PATCH_STRING @"http://192.168.14.29/wcldev"

#elif defined(TEST_MODE)

#define URL_BASE_STRING @"http://192.168.14.224:7100"
#define URL_HTML_STRING @"http://192.168.14.224:7100"
#define URL_QUOTE_BASE_STRING @"http://192.168.14.224:7100"
#define URL_PATCH_STRING @"http://192.168.14.29/wcldev_test"

#else

#define URL_BASE_STRING [[YZMNetWorkUrlServic sharedService] baseUrl]
#define URL_HTML_STRING @"https://ycl.yztz.cn/"
#define URL_QUOTE_BASE_STRING @"https://ycl.yztz.cn/"
#define URL_PATCH_STRING @"https://yztzdownload.oss-cn-hangzhou.aliyuncs.com/wclpatch"

#endif

#define CQPARAMSETKEY @"param_set"
#define CQPARAYCLASSKEY @"param_class"

#define COMMON_REQUEST_DEVICE           @"device"
#define COMMON_REQUEST_DEVICE_VALUE     @"3"

#pragma mark - user

#define URL_FOR_LOGIN                     @"sso/yztz_user_login_check.json"
#define URL_FOR_LOGOUT                    @"sso/j_spring_security_logout.json"
#define URL_FOR_REGAUTH                   @"sso/register/checkMobile.json"
#define URL_FOR_PICAUTHURL                @"sso/checkCode.json"
#define URL_FOR_REGCODE                   @"sso/register/getRegisterCode.json"
#define URL_FOR_REGISTER                  @"/sso/register/doRegisterNew.json"

#define URL_FOR_FORGOTPWDGETCODE          @"sso/forget/sendForgetCode.json"
#define URL_FOR_FORGOTPWDRESET            @"sso/forget/resetForgetPassword.json"
#define URL_FOR_FETCH_USER_ASSETS         @"pay/global/assets/getBalance.json"
#define URL_FOR_FETCH_USER_DETAIL         @"user/userInfo/getUserInfo.json"
#define URL_FOR_REGISTERCODE_CHECK        @"sso/register/goNextStep.json"

#pragma mark -- User Security

#define URL_FOR_UPDATE_REAL_NAME           @"user/security/updateRealname.json"
#define URL_FOR_UPLOAD_IDCARD              @"user/security/verifyRealNamePics.json"
#define URL_FOR_RESET_LOGIN_PWD            @"user/security/loginPwdModify.json"
#define URL_FOR_CHANGE_DRAW_PWD            @"user/security/withdrawPwdModify.json"
#define URL_FOR_SET_DRAW_PWD               @"user/security/withdrawPwdSet.json"
#define URL_FOR_FORGOT_DRAW_PWD_SEND_CODE  @"user/security/forgetWithdrawPasswordCode.json"
#define URL_FOR_FORGOT_DRAW_PWD_SET_NEW    @"user/security/resetWithdrawPwd.json"

#define URL_FOR_KEEP_ALIVE           @"home/keepAlive.json"

#pragma mark -- Home

#define URL_FOR_FETCH_SEVER_TIME @"home/currentTime.json"
#define URL_FOR_CHECK_SOFTWARE_UPDATE @"home/appRelease.json"
#define URL_FOR_FETCH_HOME_DATA_LIST @"index/getIndexData.json"
#define URL_FOR_FETCH_HOME_BANNER @"home/header.json"

#pragma mark -- Bank
#define URL_FOR_FETCH_BANK_LIST   @"home/getBankInfo.json"
#define URL_FOR_FETCH_CARD_LIST   @"pay/bankCard/getBankCards.json"
#define URL_FOR_FETCH_BRANCH_LIST @"pay/bankCard/getSubBank.json"
#define URL_FOR_MODIFY_BANK_CARD  @"pay/bankCard/updateCardInfo.json"
#define URL_FOR_ADD_BANK_CARD     @"pay/bankCard/bindBankCard.json"
#define URL_FOR_SET_DEFAULT_BANK_CARD @"pay/bankCard/setDefaultCard.json"
#define URL_FOR_DELETE_BANK_CARD  @"pay/bankCard/deleteCard.json"

#pragma mark -- Recharge & Draw

#define URL_FOR_FETCH_FUND_LIST       @"pay/user/fundDetail/getFundDetail.json"
#define URL_FOR_FETCH_FUND_ALL        @"pay/user/fundDetail/getFundAll.json"
#define URL_FOR_SUBMIT_DRAW           @"pay/withdraw/doWithdraw.json"
#define URL_FOR_FETCH_RECHARGE_TOKEN_FIRST_TIME @"pay/payGateway/iosFirstPayTradeNo.json"
#define URL_FOR_FETCH_RECHARGE_URL    @"pay/payGateway/liandongH5pay.json"
#define URL_FOR_FETCH_LIANLIAN_URL    @"pay/payGateway/getLLWapPayUrl.json"
#define URL_FOR_FETCH_AIBEI_URL       @"pay/payGateway/iappPayH5Pay.json"
#define URL_FOR_FETCH_HEFUBAO_URL     @"pay/payGateway/hfbPayH5Pay.json"
#define URL_FOR_FETCH_RECHARGE_RESULT @"pay/user/userCharge/getChargeResult.json"
#define URL_FOR_CHECK_PayMETHODCOUNT  @"index/getPayListStatus.json"
#define URL_FOR_FETCH_RECHARGE_TOKEN  @"pay/payGateway/iosPayTradeNo.json"
#define URL_FOR_CANCEL_WITHDRAW       @"pay/withdraw/cancelWithdraw.json"

#pragma mark -- Suggestion

#define URL_FOR_FETCH_SUGGESTION_LIST    @"user/messager/getMsgPage.json"
#define URL_FOR_SUBMIT_SUGGESTION        @"user/messager/postMsg.json"
#define URL_FOR_FETCH_SUGGESTION_TYPE    @"home/getMsgType.json"

#pragma mark -- Quote

#define URL_FOR_FETCH_ALL_STOCKS   @"stock/servlet/StockServlet.htm"
#define URL_FOR_REAL_QUOTE         @"stock/servlet/StockServlet.htm"
#define URL_FOR_TREND              @"stock/servlet/StockServlet.htm"
#define URL_FOR_KLINE              @"stock/servlet/StockServlet.htm"

#define URL_FOR_REAL_QUOTE_FOR_TRADE @"futuresquote/getFuturesQuote.json"
#define URL_FOR_TREND_FOR_TRADE      @"futuresquote/getFuturesQuote.json"
#define URL_FOR_KLINE_FOR_TRADE      @"futuresquote/getFuturesQuote.json"


#pragma mark -- Trade

#define URL_FOR_FETCH_CONFIGURE_DATA  @"home/strategy/index.json"
#define URL_FOR_FETCH_LIMIT_STOCK_LIST  @"home/getRiskStock.json"
#define URL_FOR_SUBMIT_TRADE          @"trade/strategy/create.json"
#define URL_FOR_FETCH_SALE_TRADE_LIST @"trade/strategy/getSaleStrategyByPage.json"
#define URL_FOR_FETCH_SALE_TRADE_LIST_OF_MEMCACHE @"trade/strategy/getSaleStrategyOfMemcache.json"
#define URL_FOR_FETCH_SALE_TRADE_LIST_D @"trade/scheme/getSaleStrategy.json"
#define URL_FOR_FETCH_SALE_TRADE_LIST_D_OF_MEMCACHE @"trade/scheme/getSaleStrategyOfMemcache.json"
#define URL_FOR_CLOSE_TRADE           @"trade/strategy/closeStrategy.json"
#define URL_FOR_FETCH_TRADE_SETTLEMENT_LIST @"trade/strategy/getSettleStrategyByPage.json"
#define URL_FOR_FETCH_TRADE_SETTLEMENT_LIST_D @"trade/scheme/getSettleStrategyByPage.json"
#define URL_FOR_FETCH_TRADE_SETTLEMENT_DETAIL @"trade/strategy/getSettleStrategyById.json"
#define URL_FOR_FETCH_TRADE_FREEEXPERIENCE_SETTLEMENT_DETAIL @"trade/freeExperience/strategy/querySettleStrategyById.json"
#define URL_ROR_GET_WAITPAY  @"trade/strategy/getWaitPayDeferForRemind.json"


#define URL_FOR_SIGN_AGREEMENT  @"user/userInfo/signAgreement.json"
#define URL_FOR_FETCH_STOCK_AMOUNT_STATISTICS @"trade/strategy/getStockStatisticsInfo.json"

#define URL_FOR_FETCH_CONFIGURE_DATE_FOR_TRADE  @"futuresindex/getRiskByCommodityNo.json"
#define URL_FOR_SUBMIT_TRADE_FOR_OUTER_DISK  @"futures/strategy/createFuturesStrategy.json"
#define URL_FOR_SIGN_AGREEMENT_FOR_OUTER_DISK @"futures/strategy/signAgreement.json"

#pragma mark - ylb trade
#define URL_FOR_FETCH_YLBCONFIGURE_DATA  @"home/ylb/strategy/index.json"
#define URL_FOR_FETCH_YLBSTOCK_AMOUNT_STATISTICS @"trade/ylb/strategy/getStockStatisticsInfo.json"
#define URL_FOR_SUBMIT_TRADEYLB          @"trade/ylb/strategy/create.json"
#define URL_FOR_FETCH_SALE_TRADEYLB_LIST @"trade/ylb/strategy/getSaleStrategyByPage.json"
#define URL_FOR_FETCH_TRADEYLB_SETTLEMENT_LIST @"trade/ylb/strategy/getSettleStrategyByPage.json"
#define URL_FOR_FETCH_SALE_TRADEYLB_LIST_OF_MEMCACHE @"trade/ylb/strategy/getSaleStrategyOfMemcache.json"
#define URL_FOR_FETCH_TRADEYLB_SETTLEMENT_DETAIL @"trade/ylb/strategy/getSettleStrategyById.json"
#define URL_FOR_CLOSE_TRADEYLB           @"trade/ylb/strategy/closeStrategy.json"



#pragma mark -- Notice

#define URL_FOR_FETCH_NOTICE @"index/getNotices.json"

#pragma mark -- myStrategy
#define URL_FOR_MYSTRATEGY @"trade/scheme/getHoldingScheme.json"

#pragma mark -- T+D Trade
#define URL_FOR_FETCH_TD_CONFIGURE_DATA  @"home/scheme/index.json"
#define URL_FOR_FETCH_TD_CURRENT_MARKET  @"scheme/getStrategyMarketValue.json"
#define URL_FOR_CREATE_SCHEME @"trade/scheme/create.json"

#define URL_FOR_STOP_TACK_LIST @"trade/strategy/getTakeOverStrategy.json"
#define URL_FOR_FETCH_TRADE_HISTORY_LIST @"trade/scheme/getHistorySchemes.json"

#define URL_FOR_CREATE_STRATERY @"trade/scheme/strategyCreate.json"
#define URL_FOR_ADD_MONEY_INIT @"trade/scheme/schemeAddMoneyInitiate.json"
#define URL_FOR_ADD_MONEY @"trade/scheme/addMoney.json"
#define URL_FOR_APPLY_SETTLEMENT @"trade/scheme/applicationLiquidationScheme.json"
#define URL_FOR_ADD_BONDS_MONEY @"trade/scheme/addPrincipal.json"
#define URL_FOR_ADD_RENEWAL_INIT @"trade/scheme/extendSchemeInitiate.json"
#define URL_FOR_ADD_SCHEME_RENEWAL @"trade/scheme/extendScheme.json"
#define URL_FOR_STOP_TACK_OVER @"trade/strategy/takeOverStrategy.json"
#define URL_FOR_GET_DEFER_DATA @"trade/strategy/takeOverInitiate.json"

#pragma mark -- oneYuan
#define URL_FOR_FETCH_ONEY_CONFIGURE_DATA @"home/experience/strategy/index.json"
#define URL_FOR_CREATE_ONEY_STRATERY  @"trade/experience/strategy/create.json"
#define URL_FOR_FIRST_FETCH_SALELIST_ABOUT_ONEY @"trade/experience/strategy/getSaleStrategy.json"
#define URL_FOR_MEMCA_SALELIST_ABOUT_ONEY @"trade/experience/strategy/getSaleStrategyByMemca.json"
#define URL_FOR_FETCH_SETTLELIST_ABOUT_ONEY @"trade/experience/strategy/getSettleStrategy.json"
#define URL_FOR_SALE_STRATEGY_ABOUT_ONEY @"trade/strategy/closeStrategy.json"

#pragma mark -- freeExperience
#define URL_FOR_FETCH_FREEEXPERIENCE_CONFIGURE_DATA @"home/freeExperience/strategy/index.json"
#define URL_FOR_CREATE_FREEEXPERIENCE_STRATERY  @"trade/freeExperience/strategy/create.json"
#define URL_FOR_FIRST_FETCH_SALELIST_ABOUT_FREEEXPERIENCE @"trade/freeExperience/strategy/getSaleStrategy.json"
#define URL_FOR_FETCH_SETTLELIST_ABOUT_FREEEXPERIENCE @"trade/freeExperience/strategy/querySettleStrategy.json"
#define URL_FOR_SALE_STRATEGY_ABOUT_FREEEXPERIENCE @"trade/freeExperience/strategy/closeStrategy.json"


#pragma mark -- simulate
#define URL_FOR_FETCH_BASIC_DATA_ABOUT_SIMULATE @"simstrategy/special.json"
#define URL_FOR_FETCH_SIMU_BALANCE_DATE @"trade/simstrategy/getSimAsset.json"
#define URL_FOR_FETCH_SIMU_CONFIGURE_DATA @"trade/simstrategy/index.json"
#define URL_FOR_FITST_FETCH_DATALIST_ABOUT_SIMULATE @"trade/simstrategy/getSaleStrategy.json"
#define URL_FOR_MEMCA_FETCH_DATALIST_ABOUT_SIMULATE @"trade/simstrategy/getSaleStrategyOfMemcache.json"
#define URL_FOR_GET_SETTLE_LIST_ABOUT_SIMULATE @"trade/simstrategy/getSettleStrategy.json"
#define URL_FOR_GET_SETTLE_LIST_DETAIL_SIMULATE @"trade/simstrategy/getAgreementStrategyById.json"
#define URL_FOR_CREATE_STAEGRY_ABOUT_SIMULATE @"trade/simstrategy/create.json"
#define URL_FOR_SALE_STRATEGR_ABOUT_SIMULATE @"trade/simstrategy/closeStrategy.json"
#define URL_FOR_ENTER_SIMULATE @"trade/simstrategy/joinStrategyComp.json"
#define URL_FOR_FETCH_SIMULATE_AMOUNT_STATISTICS @"trade/simstrategy/getStockStatisticsInfo.json"


#pragma mark -- pay Auth

#pragma mark --spreadMoney
#define URL_FOR_GET_INFOR_ABOUT_USERSPREAD @"home/generalize/getGeneralizeInfo.json"
#define URL_FOR_GET_WEICHAT_IMAGE @"home/generalize/getQRcode.json"
#define URL_FOR_GET_LIST_ABOUT_SPREAD_MYUSER @"home/generalize/getGeneralizeUsers.json"


#pragma mark --changemobilenumber
#define URL_FOR_UNBIND_IMESSAGE_CHANGEMOBILE @"user/security/mobileUnbindCode.json"
#define URL_FOR_UNBIND_CHANGEMOBILE @"user/security/unbindMobile.json"
#define URL_FOR_BIND_IMESSAGE_NEWMOBILE @"user/security/mobileBindCode.json"
#define URL_FOR_BIND_NEWMOBILE @"user/security/bindMobile.json"

#pragma mark --home  trendList
#define URL_FOR_GET_HOME_TREND_LIST @"index/getTradingStrategies.json"
#define URL_FOR_GET_HOME_RANK_LIST @"index/getStrategyWeekData.json"

#define URL_FOR_FETCH_USER_RANK @"index/getUserRank.json"
#define URL_FOR_FETCH_UNION_RANK @"union/getUnionRank.json"

#pragma mark -- Activity 
#define URL_FOR_FETCH_ACTIVITY_LIST @"activity/getActivityInfo.json"
#define URL_FOR_FETCH_ACTIVITY_LIST_NEXT @"activity/getActAwardSetInfo.json"
#define URL_FOR_FETCH_ACTIVITY_REDPACKET @"tip/receiveTipByActivity.json"
#define URL_FOR_FETCH_ACTIVITY_REDPACKET_INFOR @"tip/getTipFundInfo.json"
#define URL_FOR_FETCH_ACTIVITY_REDPACKET_LIST @"tip/getTipRecord.json"

#define URL_FOR_FETCH_FREEZE_MONEY_DATA @"trade/strategy/getPayableDeferCharge.json"

extern NSDictionary *YZ_URLModelMap();

#endif
